<%@ include file="/header.jsp" %>

<c:if test="${not empty sessionScope._user}">
<h1>Change password</h1>

<form:form commandName="change_password">

    <p><label for="user.userName">Login</label><br/>
    <form:input path="user.userName" disabled="true" />
    <form:errors path="user.userName" cssStyle="color: red"/>
    </p>

    <p><label for="password">New Password</label><br/>
    <form:password path="password"/>
    <form:errors path="password" cssStyle="color: red"/>
    </p>

    <p><label for="repeatpassw">Repeat New password</label><br/>
    <form:password path="repeatpassw"/>
    <form:errors path="repeatpassw" cssStyle="color: red"/>
    </p>

    <p><input type="submit" value="Change password"/>
</form:form>
</c:if>

<%@ include file="/footer.jsp" %>
</html>
